import axios from 'axios'

const instance = (req) => axios.create({
  baseURL: 'http://localhost:8081/',
  withCredentials: true,
  headers: {
  	cookie: req.get('cookie') || ''
  }
})


export default instance